
package com.fx.apartment.modules.dynamic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fx.apartment.common.tool.utils.DateUtil;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
 * 朋友圈点赞实体类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
@Data
@TableName("ctn_thumbs_up")
@ApiModel(value = "ThumbsUp对象", description = "朋友圈点赞")
public class ThumbsUp implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 主键
	*/
		@ApiModelProperty(value = "主键")
		@JsonSerialize(using = ToStringSerializer.class)
		@TableId(value = "id", type = IdType.ASSIGN_ID)
		private Long id;
	/**
	* 动态id
	*/
		@ApiModelProperty(value = "动态id")
		@NotNull(message = "动态id 不能为空")
		private Long dynamicId;
	/**
	* 创建人
	*/
		@ApiModelProperty(value = "创建人")
		private Long createUser;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
		@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date createTime;
	/**
	* 是否已删除
	*/
		@ApiModelProperty(value = "是否已删除")
		private Integer isDeleted;


}
